<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>登录</title>
    <script src="ckeditor2/ckeditor.js"></script>
</head>
<body>
<form action="/device/uploadPicture" method="post" enctype="multipart/form-data">
    <input type="text" value="123" name="deviceId">
    <input type="file" name="files">
    <input type="submit">

</form>


    <form>
        <textarea name="editor1" id="editor1" rows="10" cols="80">
            This is my textarea to be replaced with CKEditor.
        </textarea>
        <script>
            // Replace the <textarea id="editor1"> with a CKEditor
            // instance, using default configuration.
            CKEDITOR.replace( 'editor1' );
        </script>

    <input type="button" value="getData" onclick="f()">
        <input type="button" value="setData" onclick="setDataCkeditor()">

    <script>
        function f() {
            let wyj = CKEDITOR.instances.editor1.getData();
            console.log(wyj)
        }
        function setDataCkeditor(){
            //CKEDITOR.instances.CKEditorID.setData("Hello World!");
            CKEDITOR.instances.editor1.setData('这是测试数据。');
        }
    </script>
</form>


</body>
</html>